package org.wenhuayuan.library.resful

import java.io.IOException

interface HiCall<T> {

    @Throws(IOException::class)
    fun execute() : HiResponse<T>

    fun enqueue(callback: HiCallback<T>)

    /** HiCall对象，是通过工厂模式得到 */
    interface Factory {
        fun newCall(request: HiRequest):HiCall<*>
    }

}